package com.zluyuer.ermu;

import java.util.HashMap;
import java.util.Map;

public class ErmuContext {

    private static class MessageContextHolder {  
        static final ErmuContext instance = new ErmuContext();
    } 

    public static ErmuContext getInstance() {
        return MessageContextHolder.instance;
    }
    
    private Map<String, Object> params = new HashMap<String, Object>();
    
    public boolean contains(String key) {
        return params.containsKey(key);
    }
    
    public void put(String key, Object o) {
        params.put(key, o);
    }

    public Object get(String key) {
        return params.get(key);
    }
    
    public void remove(String key) {
        params.remove(key);
    }
}
